package com.game.backend.controller.record;

import com.alibaba.fastjson2.JSONObject;
import com.game.backend.service.record.GetRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/record")
public class GetRecordController {
    @Autowired
    private GetRecordService getRecordService;

    @RequestMapping("/get")
    public JSONObject getRecord(Integer page){
        return getRecordService.getList(page);
    }
}
